package com.imdroid.lite.model;

public class User {
	/**
	 * 用户ID
	 */
	private int user_id;
	/**
	 * 用户名称
	 */
	private String user_name;
	/**
	 * 用户密码
	 */
	private String password;
	/**
	 * 车机SIM卡号码
	 */
	private String sim_number;
	/**
	 * 用户手机号码
	 */
	private String mobile_phone;
	/**
	 * 车型
	 */
	private String vechile_model;
	/**
	 * 车牌号码
	 */
	private String board_plate;
	/**
	 * 昵称
	 */
	private String nickname;
	/**
	 * 用户类型 - 1 - 车机用户 2-车机用户的Lite用户， 3 - 访客
	 */
	private Integer type;
	/**
	 * 队伍的进入密码
	 */
	private String team_access_code;
	/**
	 * 用户类型 - 1 - 车机用户
	 */
	public final static int TYPE_DEVICE = 1;
	/**
	 * 用户类型 - 2-车机用户的Lite用户
	 */
	public final static int TYPE_DEVICE_LITE = 2;
	/**
	 * 用户类型 - 3 - 访客
	 */
	public final static int TYPE_VISTOR = 3;
	/**
	 * 车机ID (只当用户类型是2时有效)
	 */
	private Integer parentId;
	/**
	 * 车机昵称
	 */
	private String parentName;
	/**
	 * Get the user id
	 * 
	 * @return the user_id
	 */
	public int getUser_id() {
		return user_id;
	}

	/**
	 * Set the user id
	 * 
	 * @param user_id
	 *            the user_id to set
	 */
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	/**
	 * Get user name
	 * 
	 * @return the user_name
	 */
	public String getUser_name() {
		return user_name;
	}

	/**
	 * Set the user name
	 * 
	 * @param user_name
	 *            the user_name to set
	 */
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	/**
	 * Geth the sim car number
	 * 
	 * @return the sim_number
	 */
	public String getSim_number() {
		return sim_number;
	}

	/**
	 * Set the sim car number
	 * 
	 * @param sim_number
	 *            the sim_number to set
	 */
	public void setSim_number(String sim_number) {
		this.sim_number = sim_number;
	}

	/**
	 * Get the password
	 * 
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Set the password
	 * 
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Get the moboile phone name
	 * 
	 * @return the mobile_phone
	 */
	public String getMobile_phone() {
		return mobile_phone;
	}

	/**
	 * Set the mobile phone number
	 * 
	 * @param mobile_phone
	 *            the mobile_phone to set
	 */
	public void setMobile_phone(String mobile_phone) {
		this.mobile_phone = mobile_phone;
	}

	/**
	 * Get the vechile modal
	 * 
	 * @return the vechile_model
	 */
	public String getVechile_model() {
		return vechile_model;
	}

	/**
	 * Set the vechile modal
	 * 
	 * @param vechile_model
	 *            the vechile_model to set
	 */
	public void setVechile_model(String vechile_model) {
		this.vechile_model = vechile_model;
	}

	/**
	 * Get the board plate
	 * 
	 * @return the board_plate
	 */
	public String getBoard_plate() {
		return board_plate;
	}

	/**
	 * Set the board plate
	 * 
	 * @param board_plate
	 *            the board_plate to set
	 */
	public void setBoard_plate(String board_plate) {
		this.board_plate = board_plate;
	}

	/**
	 * Get the nickname
	 * 
	 * @return the nickname
	 */
	public String getNickname() {
		return nickname;
	}

	/**
	 * Set the nick name
	 * 
	 * @param nickname
	 *            the nickname to set
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	/**
	 * Get type
	 * 
	 * @return the type
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * Set the type
	 * 
	 * @param type
	 *            the type to set
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * Get the parent id
	 * 
	 * @return the parentId
	 */
	public Integer getParentId() {
		return parentId;
	}

	/**
	 * Set the parent id
	 * 
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	/**
	 * Get the team access code
	 * 
	 * @return the team_access_code
	 */
	public String getTeam_access_code() {
		return team_access_code;
	}

	/**
	 * Set the team access code
	 * 
	 * @param team_access_code
	 *            the team_access_code to set
	 */
	public void setTeam_access_code(String team_access_code) {
		this.team_access_code = team_access_code;
	}

	/**
	 * @return the parentName
	 */
	public String getParentName() {
		return parentName;
	}

	/**
	 * @param parentName the parentName to set
	 */
	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	/**
	 * Get the defualt team(leader is myself)
	 * 
	 * @return the defualt team
	 */
	public Team getDefualtTeam() {
		Team team = new Team();
		team.setTeamId(user_id);
		team.setTeamName(nickname);

		TeamMember member = new TeamMember();
		member.setId(user_id);
		member.setDisplayName(nickname);
		team.setTeamLeader(member);
		team.setTeamSource(Team.SOURCE_ME);
		return team;
	}
}
